package com.ktwlsoft.archivemanage.payload.operationLog;

import com.ktwlsoft.archivemanage.domain.dao.entity.OperationLog;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

@Setter
@Getter
@ApiModel("保存操作日志")
public class SaveLogRequest {

    @ApiModelProperty("操作类型")
    @NotNull
    private OperationLog.OperationType operationType;

    @ApiModelProperty("描述")
    @NotNull
    private String description;

    @ApiModelProperty("路径")
    @NotNull
    private String route;

    @ApiModelProperty("业务类型")
    @NotNull
    private OperationLog.BusinessType businessType;

    public SaveLogRequest(@NotNull OperationLog.OperationType operationType, @NotNull String description, @NotNull String route, @NotNull OperationLog.BusinessType businessType) {
        this.operationType = operationType;
        this.description = description;
        this.route = route;
        this.businessType = businessType;
    }
}
